package com.le.tester.dao;

import com.le.tester.dto.GoodsDto;
import com.le.tester.entity.SecKillGoods;
import com.le.tester.entity.SecKillGoodsExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface SecKillGoodsMapper {
    long countByExample(SecKillGoodsExample example);

    int deleteByExample(SecKillGoodsExample example);

    int deleteByPrimaryKey(Long id);

    int insert(SecKillGoods record);

    int insertSelective(SecKillGoods record);

    List<SecKillGoods> selectByExample(SecKillGoodsExample example);

    SecKillGoods selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") SecKillGoods record, @Param("example") SecKillGoodsExample example);

    int updateByExample(@Param("record") SecKillGoods record, @Param("example") SecKillGoodsExample example);

    int updateByPrimaryKeySelective(SecKillGoods record);

    int updateByPrimaryKey(SecKillGoods record);

    //根据商品id获取秒杀商品的信息
    SecKillGoods selectSecKillInfoByGoodsId(@Param("goodsId") Long goodsId);
}